package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type UpdateViewPermissionRequest struct {
	ActivityId       *int64 `json:"ActivityId"`
	AccessPermission *int32 `json:"AccessPermission"`
	ChatPermission   *int32 `json:"ChatPermission"`
}

func (instance *Instance) UpdateViewPermission(data *UpdateViewPermissionRequest) (*NoResultResponse, error) {
	d := request.Data{
		Action: "UpdateViewPermissionAPI",
	}
	bindBody(&d, *data)
	var res NoResultResponse
	err := instance.post(&d, &res)
	return &res, err
}
